package com.zplus.managers.petservices.mappers;

import com.fasterxml.jackson.databind.ser.Serializers;
import com.zplus.managers.petservices.entities.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdminMapper
{
    int insertAdmin(Admin ad);

    int dropAdmin(Admin ad);

    int updateAdmin(Admin ad);

    List<Admin> queryAllAdmin();

    Admin queryAdminById(@Param("id")int id);

    Admin queryAdminByEmail(@Param("email")String email);

    Admin queryAdminByPhoneNum(@Param("phoneNum")String phoneNum);

    Admin queryAdminByNickname(@Param("nickname")String nickname);

}
